package org.example.eatback.service;

import org.example.eatback.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service

public interface UserService {
    //根据用户名查询数据库
    User findByUser(String username);
    //注册  将用户名和密码添加到数据库中
    void register(String username, String password);

    User getUserInfo(String username);

    void updateUserInfo(User user);

}